﻿using System;
using System.Collections;
using System.Collections.Generic;
using DBA.Common;

namespace DBA.Model
{
    /// <summary>
    ///功能描述    :    TeaherPaper
    ///开发者      :    
    ///建立时间    :    2012-8-30 23:17:47
    ///修订描述    :    
    ///进度描述    :    
    ///版本号      :    1.0
    ///最后修改时间:    2012-8-30 23:17:47
    /// </summary>
        [OrmPropertyAttribute(TableName = "TeaherPaper",PrimaryKey = "TpID",PrimaryKeyType = "IDENTITY",ParameterType = "int")]
    public class TeaherPaper
    {
        #region 构造函数
        public TeaherPaper(){}
        
        public TeaherPaper(int TpID,int EmployeeID,short Grade,string Year,int PaperFirst,int PaperMiddle,int OpenCount,int CheckCount,int PrepareCount,int AnswerCount)
        {
           this._TpID = TpID;
           this._EmployeeID = EmployeeID;
           this._Grade = Grade;
           this._Year = Year;
           this._PaperFirst = PaperFirst;
           this._PaperMiddle = PaperMiddle;
           this._OpenCount = OpenCount;
           this._CheckCount = CheckCount;
           this._PrepareCount = PrepareCount;
           this._AnswerCount = AnswerCount;

        }
        #endregion
        
        #region 成员
        private int _TpID;
        private int _EmployeeID;
        private short _Grade;
        private string _Year;
        private int _PaperFirst;
        private int _PaperMiddle;
        private int _OpenCount;
        private int _CheckCount;
        private int _PrepareCount;
        private int _AnswerCount;
        #endregion
        
        #region 属性
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "int",ParameterLength = 4,IsNull = "0")]
        public virtual int TpID
        {
            get { return _TpID; }
            set { _TpID = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "int",ParameterLength = 4,IsNull = "1")]
        public virtual int EmployeeID
        {
            get { return _EmployeeID; }
            set { _EmployeeID = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "smallint",ParameterLength = 2,IsNull = "1")]
        public virtual short Grade
        {
            get { return _Grade; }
            set { _Grade = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "varchar",ParameterLength = 10,IsNull = "1")]
        public virtual string Year
        {
            get { return _Year; }
            set { _Year = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "int",ParameterLength = 4,IsNull = "1")]
        public virtual int PaperFirst
        {
            get { return _PaperFirst; }
            set { _PaperFirst = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "int",ParameterLength = 4,IsNull = "1")]
        public virtual int PaperMiddle
        {
            get { return _PaperMiddle; }
            set { _PaperMiddle = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "int",ParameterLength = 4,IsNull = "1")]
        public virtual int OpenCount
        {
            get { return _OpenCount; }
            set { _OpenCount = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "int",ParameterLength = 4,IsNull = "1")]
        public virtual int CheckCount
        {
            get { return _CheckCount; }
            set { _CheckCount = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "int",ParameterLength = 4,IsNull = "1")]
        public virtual int PrepareCount
        {
            get { return _PrepareCount; }
            set { _PrepareCount = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "int",ParameterLength = 4,IsNull = "1")]
        public virtual int AnswerCount
        {
            get { return _AnswerCount; }
            set { _AnswerCount = value; }
        }
        #endregion
    }
}